﻿@model IEnumerable<FantasyBlog.DAL.Comment>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_CPLayout.cshtml";
}


<div id="icon-edit-comments" class="icon32"><br /></div>
<h2>评论</h2>
<form id="posts-filter" action="" method="get">

<!--
<p class="search-box">
	<label class="screen-reader-text" for="post-search-input">搜索文章:</label>
	<input type="text" id="post-search-input" name="s" value="" />
	<input type="submit" name="" id="search-submit" class="button" value="搜索文章"  />
</p>
-->

<table class="wp-list-table widefat fixed posts" cellspacing="0">
	<thead>
	<tr>
		<th scope='col' id='cb' class='manage-column column-cb check-column'  style="">
        </th>
        <th scope='col' id='title' class='manage-column column-title sortable desc'  style="">
            <span>作者</span>
        </th>
        <th scope='col' id='author' class='manage-column column-author sortable desc'  style="">
            <span>评论</span>
        </th>
        <th scope='col' id='author' class='manage-column column-author sortable desc'  style="">
            <span>时间</span>
        </th>
    </tr>
	</thead>

	<tfoot>
	<tr>
		<th scope='col' id='cb' class='manage-column column-cb check-column'  style="">
        </th>
        <th scope='col' id='title' class='manage-column column-title sortable desc'  style="">
            <span>作者</span>
        </th>
        <th scope='col' id='author' class='manage-column column-author sortable desc'  style="">
            <span>评论</span>
        </th>
        <th scope='col' id='author' class='manage-column column-author sortable desc'  style="">
            <span>时间</span>
        </th>
    </tr>
	</tfoot>

	<tbody id="the-list">
        @foreach (var item in Model)
        {
        <tr id='post-6' class='alternate author-self status-publish format-default iedit' valign="top">
			<th scope="row" class="check-column">
            </th>		
            <td class="author column-author">
                <a >@Html.DisplayFor(modelitem => item.author)</a>
                <br />
                <a >@Html.DisplayFor(modelitem => item.author_email)</a>
                <br />
                <a>@Html.DisplayFor(modelitem => item.ip)</a>
            </td>
            <td class="post-title page-title column-title">
                <strong><a class="row-title" >@Html.DisplayFor(modelitem => item.content)</a></strong>
            </td>
			<td class="tags column-tags">@Html.DisplayFor(modelitem => item.date)</td>	
        </tr>
        }
    </tbody>
</table>
</form>
